let json = {
	a(){
		console.log("a");
	},
	b:()=>{
		console.log("b");
	},
	sleep(t){
		return new Promise((resolve,reject)=>{
			setTimeout(()=>{
				resolve();
			},t);
		});
	}
};

(async ()=>{
	for(let i=0;i<10;i++){
		await json.sleep(1000);
		console.log(i);
	}
})();



